package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * user_account（用户账号表）
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("applet_bind_card")
@ApiModel(value = "AppletBindCard对象", description = "applet_bind_card（小程序唯一标识绑定中间表）")
public class AppletBindCard extends Model<AppletBindCard> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "小程序唯一标识")
    @TableId("applet_user_id")
    private String appletUserId;

    @ApiModelProperty(value = "用户流水号")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "小程序类型")
    @TableField("applet_type")
    private String appletType;


    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.appletUserId;
    }

}
